const express = require("express")
const verify = require('../middleware/verify')
const pageRouter = express.Router()
// 首页
pageRouter.get("/",(req,res)=>{
    let username = req.session.username
    res.render("index.html",{username:username})
})
// 登录页
pageRouter.get("/login",(req,res)=>{
    res.render("login.html")
})
// 注册页
pageRouter.get("/register",(req,res)=>{
    res.render("reg.html")
})
// 添加备忘录页
pageRouter.get("/note",(req,res)=>{
    let username = req.session.username
    res.render("note.html",{username}) 
})

module.exports = pageRouter